///调用请求的url：BaseHost.apiHost+Api.BIG_WORD

class Api {
  ///接口说明（必须写注释）
  static const String BIG_WORD = "request/api/address";
  ///。。。
}

///Host 配置
class BaseHost{
  ///接口HOST
  static String apiHost = "http://www.geely.smart.api/";
  ///图片Host
  static String apiHostImage = "http://www.geely.smart.api/image/";

  static initHost(EnvironmentType environmentType){
    switch(environmentType){
      case EnvironmentType.dev://开发环境
        apiHost = "http://www.geely.smart.api/";
        apiHostImage = "http://www.geely.smart.api/image/";
        break;
      case EnvironmentType.ft1://测试环境
        apiHost = "http://www.geely.smart.api/";
        apiHostImage = "http://www.geely.smart.api/image/";
        break;
      case EnvironmentType.ft2:
        apiHost = "http://www.geely.smart.api/";
        apiHostImage = "http://www.geely.smart.api/image/";
        break;
      case EnvironmentType.release://生产环境
        apiHost = "http://www.geely.smart.api/";
        apiHostImage = "http://www.geely.smart.api/image/";
        break;
    }
  }
}

///网络环境
enum EnvironmentType {
  dev,
  ft1,
  ft2,
  release
}